<?xml version="1.0" encoding="iso-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:tr="http://myfaces.apache.org/trinidad">
<f:view>
    <tr:document title="Maak een Fantasy Tour">
        <tr:form id="makeFantasyTourForm">
            <tr:messages globalOnly="true"/>
            <tr:panelTabbed position="above">
                <tr:showDetailItem text="Fantasy Tour">
                    <tr:panelFormLayout>
                        <tr:inputText label="Naam"
                                      value="#{makeFantasyTourDialog.makeFantasyTourMAO.name}"/>
                    </tr:panelFormLayout>
                </tr:showDetailItem>
                <tr:showDetailItem text="Tour">
                    <tr:panelFormLayout>
                        <tr:inputText label="Naam"
                                      value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeTourMAO.name}"/>
                        <tr:inputNumberSpinbox label="Aantal etappes"
                                               value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeTourMAO.numberOfStages}"/>
                        <tr:selectBooleanCheckbox label="Proloog"
                                                  value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeTourMAO.prologue}"/>
                        <tr:inputNumberSpinbox label="Aantal teams"
                                               value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeTourMAO.numberOfTeams}"/>
                        <tr:inputNumberSpinbox label="Rugnummer laag"
                                               value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeTourMAO.yerseyNumberLow}"/>
                        <tr:inputNumberSpinbox label="Rugnummer hoog"
                                               value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeTourMAO.yerseyNumberHigh}"/>
                    </tr:panelFormLayout>
                </tr:showDetailItem>
                <tr:showDetailItem text="Configuratie">
                    <tr:panelFormLayout>
                        <tr:selectOneChoice unselectedLabel="Selecteer een Configuratie"
                                            label="Configuratie:"
                                            valuePassThru="true"
                                            immediate="true">
                        </tr:selectOneChoice>
                        <tr:inputText label="Naam"
                                      value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeFantasyTourConfigurationMAO.name}"/>
                        <tr:inputNumberSpinbox id="ridersInListCountInput"
                                               label="Aantal renners in deelnemerlijst"
                                               value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeFantasyTourConfigurationMAO.ridersInListCount}"/>
                        <tr:inputNumberSpinbox id="substituteRidersInListCountInput"
                                               label="Aantal reserves in deelnemerlijst"
                                               value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeFantasyTourConfigurationMAO.substituteRidersInListCount}"/>
                        <tr:selectBooleanCheckbox text="Reserves inschuiven?"
                                                  value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeFantasyTourConfigurationMAO.substituteRiders}"/>
                        <tr:inputNumberSpinbox id="teamMembersInYouthResultInput"
                                               label="Aantal renners in uitslag jongeren"
                                               value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeFantasyTourConfigurationMAO.ridersInYouthResultCount}"/>
                        <tr:inputNumberSpinbox id="teamMembersInOverallResultInput"
                                               label="Aantal renners in uitslag algemeen klassement"
                                               value="#{makeFantasyTourDialog.makeFantasyTourMAO.makeFantasyTourConfigurationMAO.ridersInOverallResultCount}"/>
                    </tr:panelFormLayout>
                </tr:showDetailItem>
            </tr:panelTabbed>
            <tr:panelButtonBar>
                <tr:commandButton text="Maken"
                                  actionListener="#{makeFantasyTourDialog.makeFantasyTour}"/>
            </tr:panelButtonBar>
        </tr:form>
    </tr:document>
</f:view>
</html>